import request from '@/utils/request'

// 查询客户宠物信息列表
export function listCustomerPet(query) {
  return request({
    url: '/hospital/CustomerPet/list',
    method: 'get',
    params: query
  })
}

// 查询客户宠物信息详细
export function getCustomerPet(id) {
  return request({
    url: '/hospital/CustomerPet/' + id,
    method: 'get'
  })
}

// 新增客户宠物信息
export function addCustomerPet(data) {
  return request({
    url: '/hospital/CustomerPet',
    method: 'post',
    data: data
  })
}

// 修改客户宠物信息
export function updateCustomerPet(data) {
  return request({
    url: '/hospital/CustomerPet',
    method: 'put',
    data: data
  })
}

// 删除客户宠物信息
export function delCustomerPet(id) {
  return request({
    url: '/hospital/CustomerPet/' + id,
    method: 'delete'
  })
}
